package p366;/**
 * @Author：ming
 * @Date：2023/10/14 12:25 PM
 * @Filename：Lc2841
 */

import java.util.HashSet;
import java.util.List;

/**
 * @author ming
 */
public class Lc2841 {
    public long maxSum(List<Integer> nums, int m, int k) {
        HashSet<Integer> set = new HashSet<>();
        for (Integer num : nums) {
            set.add(num);
        }
        if(set.size()<m){
            return 0;
        }
        return 1;
    }
}
